hug the shore

Translations
longer le rivage
Definitions
To follow a path or route that stays close to the edge of a body of water, such as a lake, river, or ocean, often for safety or to maintain a specific course.